A dam is a structure built across the river to restrict the flow of water downstream. They can be made of concrete or soil. It's like a great big valve. It holds water back and releases it slowly to prevent flooding.